Skip to content

Conversation

VegetarianOrc
Copy link
Contributor

What was changed

  • Add the start_update_with_start_workflow to the OpenTelemetry interceptor.
  • Add headers field to temporalio.client.StartWorkflowUpdateWithStartInput
  • Use headers from StartWorkflowUpdateWithStartInput to populate headers for both operations sent in temporalio.client._ClientImpl.start_update_with_start_workflow
  1. Closes [Bug] OTEL metadata missing for execute_update_with_start_workflow  #1053

  2. How was this tested:

A new test was added to verify that start_update_with_start_workflow produces correct spans when called on an in flight workflow and a new workflow.

  1. Any docs updates needed?

@VegetarianOrc VegetarianOrc marked this pull request as ready for review October 9, 2025 22:19
@VegetarianOrc VegetarianOrc requested a review from a team as a code owner October 9, 2025 22:19
[temporalio.api.workflowservice.v1.StartWorkflowExecutionResponse], None
]
_on_start_error: Callable[[BaseException], None]
headers: Mapping[str, temporalio.api.common.v1.Payload]
Copy link
Member

@cretz cretz Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unlike some other SDKs, this SDK chose to break apart the input into start and update classes, and put headers in each of those. Can you just use those instead of adding a third new header field to this set of input? Yes, it may mean copying the OTel header to a second place in the OTel interceptor, but that makes more sense than to add a new header field for everyone unnecessarily that force overwrites the more specific ones.

@VegetarianOrc VegetarianOrc merged commit 2efd9a7 into main Oct 16, 2025
57 of 63 checks passed
@VegetarianOrc VegetarianOrc deleted the otel/add-update-with-start branch October 16, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] OTEL metadata missing for execute_update_with_start_workflow

3 participants